package com.bcu.calculus.service;

import com.bcu.calculus.entity.Message;
import com.bcu.calculus.entity.User;
import com.bcu.calculus.entity.UserNumber;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import java.util.Map;

public interface UserService {

    Message<?> addUser(User user);

    Message<User> Login(String userId, String userPwd);

    Message<?> insertUserSelective(User user);

    Message<?> delUser(String userId);

    Message<UserNumber> findUserByPrimaryKey(String userId);

    Message<User> findUserAndInfoByPrimaryKey(String userId);

    Message<List<User>> findAllUser();

    Message<List<User>> findAllUserAndUserInfo();

    Message<?> updateUserByPrimaryKeySelective(User user);

    Message<?> updateUserByPrimaryKey(User user);

    Message<List<User>> getAllUserRankInBranch(Integer branch);

    Message<Integer> getOneUserRank(String userId);

    Message<Integer> getOneUserRankInBranch(String userId,Integer branch);

    Message getListByUserType(String userType);

    Message uploadByExcel(InputStream inputStream) throws IOException;
}
